package com.sample.seata.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * `account-service` 服务的 Feign 客户端
 */
@FeignClient(name = "user-service")
public interface UserServiceFeignClient {

    @GetMapping("/user/valid_user")
    void validUser(@RequestParam("userId") Long userId);

}
